/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package session.stateless.MRP.SaleForecast;

import entity.Product;
import entity.MRP.SaleForecast.AnnualSaleForecast;
import entity.MRP.SaleForecast.MonthlySaleForecast;
import entity.MRP.SaleForecast.SaleForecastLineItem;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Vincent
 */
@Local
public interface SaleForecastBeanLocal {
    public List<MonthlySaleForecast> getMonthlySaleForecasts(int year, int startPeriod, int endPeriod);
    public MonthlySaleForecast getMonthlySaleForecast(int year, int month);
    public List<Integer> getSaleForecastMonths();
    public boolean generateSaleForecasts(int startMonth, int startYear, int endMonth, int endYear);
    public AnnualSaleForecast getAnnualSaleForecast(int year);
    public void updateSaleForecast(int year, int month, Product product, long quantityInCases, long promotionQuantityInCases);
    public void editSaleForecast(long monthId,List<SaleForecastLineItem> saleForecastLineItems);
    public void updateYoYGrowth(int year, double growth);
}
